package pack0630;

public class Test {
    public static void main(String[] args) {
        PingpangPlayer ppp = new PingpangPlayer();
        ppp.setName("杨磊");
        ppp.setAge(65);
        System.out.println(ppp.getName()+":"+ppp.getAge());
        ppp.eat();
        ppp.English();
        ppp.learn();
        System.out.println("--------------------");
        BasketballPlayer bp = new BasketballPlayer();
        bp.setName("李钊");
        bp.setAge(74);
        System.out.println(bp.getName()+":"+bp.getAge());
        bp.eat();
        bp.learn();
        ppp = new PingpangPlayer("武鑫",80);
        System.out.println(ppp.getName()+":"+ppp.getAge());
        ppp.eat();
        ppp.learn();
        ppp.English();
        Athlete aaa = new BasketballPlayer();
        aaa.learn();
        aaa.eat();
        SpeakEnglish pp = new PingpangPlayer();
        pp.English();
        Person kk = new BastballCoach();
        kk.eat();
        kk.setName("李大钊");
        kk.setAge(35);
        System.out.println(kk.getName()+":"+kk.getAge());

    }
}
